<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
		/*第一种方法*/
			/*var score=100;
			switch(parseInt(score/10) ){
				case 6:
				case 7:
				case 8:
				case 9:
				case 10:
					console.log("合格");
					break;
				default:
					console.log("不合格");
					break;
			}*/
		/*第二种方法*/
			var score=100;
			switch(true){
				case score>=60:
					console.log("合格");
					break;
				default:
					console.log("不合格");
					break;
					
				
			}
		</script>
	</head>
	<body>
	</body>
</html>
